package com.example.blog.service;

import com.example.blog.entity.Category;
import java.util.List;

public interface CategoryService {

    Category createCategory(String name, String description);

    Category updateCategory(Long id, String name, String description);

    void deleteCategory(Long id);

    Category findById(Long id);

    Category findByName(String name);

    List<Category> findAll();

    boolean existsByName(String name);

}